package com.jshare.dao;

import java.util.List;

import com.jshare.entity.Member;

public interface MemberDAO {

	//property constants
	public static final String PASSWD = "passwd";
	public static final String EMAIL = "email";
	public static final String ROLE = "role";

	public abstract void save(Member transientInstance);

	public abstract void delete(Member persistentInstance);
	
	public abstract Member findById(java.lang.String id);

	public abstract List findByExample(Member instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByPasswd(Object passwd);

	public abstract List findByEmail(Object email);

	public abstract List findByRole(Object role);

	public abstract List findAll();

	public abstract Member merge(Member detachedInstance);

	public abstract void attachDirty(Member instance);

	public abstract void attachClean(Member instance);
	
	///definate
	
	public List getPage(String sql, int firstRow,int maxRow); 
	public int getTotalRows(String sql); 

}